package com.cn.mmd.service;

import com.cn.mmd.model.EmploymentQuest;
import com.cn.mmd.model.EmploymentQuestStatistical;
import com.cn.mmd.model.EmploymentQuestionnaire;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2016/8/27.
 */
public interface EmploymentService {

    /**
     * 添加就业问卷url表
     * @param employmentQuestionnaire
     * @return
     */
    int insertEmploymentQuestionnaire(EmploymentQuestionnaire employmentQuestionnaire);

    /**
     * 通过问卷id查询就业问卷url
     * @return
     */
    EmploymentQuestionnaire selectEmploymentQuestionnaire(int questionnaire);

    /**
     * 设置就业问卷
     * @param employmentQuest
     * @return
     */
    int insertEmploymentQuest(EmploymentQuest employmentQuest);

    /**
     * 查看问卷
     * @param questionId
     * @return
     */
    EmploymentQuest selectEmploymentQuest(int questionId);

    /**
     * 查看全部统计结果
     * @return
     */
    List<EmploymentQuestStatistical> selectStatisical(EmploymentQuestStatistical employmentQuestStatistical);


    /**
     * 通过时间查看统计结果
     * @return
     */
    List<EmploymentQuestStatistical> selectNewStatisical(Map map);

    /**
     * 添加统计
     * @param employmentQuestStatistical
     * @return
     */
    int insertEmploymentQuestStatistical(EmploymentQuestStatistical employmentQuestStatistical);


    /**
     * 查看最新统计结果
     * @return
     */
    List<EmploymentQuestStatistical> selectLatestStatisical();
}
